﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Usercontrol_ControlMenuPrivate : System.Web.UI.UserControl
{
    ClassExecute.ClassExecute dt;
    string error = "";
    string str = webapp4U.Configuration.CurrentConnectionString;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["TypeID"] == null)
            {
                Session["TypeID"] = "ba";
            }
        }
        loadcategory();
    }
    private void loadcategory()
    {
        
        dt = new ClassExecute.ClassExecute();

        DataTable menuRoot = dt.Get_Data_DataTable(str, ref error, "k_getMenuPrivate1", CommandType.StoredProcedure,
            new SqlParameter("@TypeID", Session["TypeID"].ToString()));
        rpt_subsubcategory.DataSource = menuRoot;
        rpt_subsubcategory.DataBind();
    }
}